Discover gists
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
- Follow standard conventions.
- Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
- Boy scout rule. Leave the campground cleaner than you found it.
- Always find root cause. Always look for the root cause of a problem.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:{/** * Made by kurwa Kerai * chcesz rozpowszechniac? podawaj źródło * chcesz cos zmieniac? wszystkie komentarze pisz * w komentarzach wieloliniowych, bo sie moze popsuc pod chrome i opera... */var whitespace = "-\/|.,!:;'\" \t\n\r{}[]()";var stack = [];var curNIndex = 0;var curNode = null;var curIndex = -1;var state = 1;var lastword = '';String.prototype.startsWith = function(prefix) {return this.indexOf(prefix) === 0;};String.prototype.endsWith = function(suffix) {return this.match(suffix+"$") == suffix;};/* Nie moge tak robić niestety */function kurwizeLink(url){if(url.startsWith('javascript:'))return url; /* chyba niewiele moge zrobic kurwa */if(url.startsWith('#'))return url;if(url.startsWith('http://kurwa.keraj.net/?url='))return url; /* no, bo kurwa, bez jaj ;p */var base = '';if(!url.startsWith('http')){base = location.protocol + "://" + location.host;if(!url.startsWith('/')){var pathname = location.pathname;base += pathname.substring(0, pathname.lastIndexOf('/'));}}return 'http://kurwa.kera |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function heidiDecode(hex) { | |
var str = ''; | |
var shift = parseInt(hex.substr(-1)); | |
hex = hex.substr(0, hex.length - 1); | |
for (var i = 0; i < hex.length; i += 2) | |
str += String.fromCharCode(parseInt(hex.substr(i, 2), 16) - shift); | |
return str; | |
} | |
document.write(heidiDecode('755A5A585C3D8141786B3C385E3A393')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# YouTube (english) : https://www.youtube.com/watch?v=FtU2_bBfSgM | |
# YouTube (french) : https://www.youtube.com/watch?v=VjnaVBnERDU | |
# | |
# On your laptop, connect to the Mac instance with SSH (similar to Linux instances) | |
# | |
ssh -i <your private key.pem> ec2-user@<your public ip address> | |
# | |
# On the Mac |
NewerOlder